import { ajax } from '../http.js';

const findBusinessDataUrl = '/authc/index2b/find_business_data';
const creatorCentreUrl = '/authc/index2b/find_creator_centre_data';
const directFriendUrl = '/authc/user_rank/find_user_direct_friend_page';

// 首页商户端经营数据查询
const findBusinessData = (data, success, fail) => {
  ajax({
    url: findBusinessDataUrl,
    data: data,
    success: success,
    fail: fail
  });
};
// 首页创客中心
const creatorCentreData = (data, success, fail) => {
  ajax({
    url: creatorCentreUrl,
    data: data,
    success: success,
    fail: fail
  });
};
// 直接推荐好友
const directFriendData = (data, success, fail) => {
  ajax({
    url: directFriendUrl,
    data: data,
    success: success,
    fail: fail
  });
};

export {
  findBusinessData,
  creatorCentreData,
  directFriendData
}